package com.bulk.list;

import cn.hutool.core.collection.ListUtil;
import cn.hutool.json.JSONUtil;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * list 拆分
 *
 * @author 散装java
 */
public class ListSplit {
    public static void main(String[] args) {
        List<String> strings = Arrays.asList("1");
//        List<String> strings = new ArrayList<>();
        List<List<String>> split = ListUtil.split(strings, 1);
        split.forEach(ls -> System.out.println(ls.toString()));
        split.forEach(System.out::println);

    }
}
